
class jeongho{
 public static void main(String[] args) 
 { 
  int i =0;
  int f = 1;
  
  for(i=1;i<=10;i++)
  {
   f=f*i;
   System.out.println(i+"! = " +f);
  }

 }
 
}

